package entity

import (
	"shqsoft.cn/pasnj/base"
)

//TSysUser 币种
type TSysUser struct {
	ID    int    `gorm:"primary_key;column:ID"`
	SName string `gorm:"column:SysUserName;size:20"`
}

//TableName 币种名
func (TSysUser) TableName() string {
	return "T_SysUser"
}

//YJRD 用户
type YJRD struct {
	ID       int      `gorm:"AUTO_INCREMENT;primary_key;column:DVID"`
	Ywid     int      `gorm:"column:YWID"`
	Jlid     int      `gorm:"column:JLID"`
	Dsvl     float64  `gorm:"column:DSVL"`
	EmID     int      `gorm:"column:EMID"`
	TSysUser TSysUser `gorm:"ForeignKey:EmID"`
}

//TableName yjrd
func (YJRD) TableName() string {
	return "T_CM_INTER_STL_SUM_M_DIVI"
}

//YJRDEF yjrd
func YJRDEF() base.EntityFunc {
	return func() interface{} {
		entity := YJRD{}
		return &entity
	}
}

//YJRDESF yjrd
func YJRDESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []YJRD
		return &entities
	}
}

//TSysUserEF y
func TSysUserEF() base.EntityFunc {
	return func() interface{} {
		entity := TSysUser{}
		return &entity
	}
}

//TSysUserESF y
func TSysUserESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []TSysUser
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("TSysUser", base.NewDefaultDao(TSysUserEF(), TSysUserESF(), nil))
	relationship := []string{"TSysUser"}
	base.DaoPoolObj.Put("YJRD", base.NewDefaultDao(YJRDEF(), YJRDESF(), relationship))
}
